import axios from "./config";

//定义请求接口

//登入

export const loginApi = (username, password) =>
  axios.post("/users/login", {
    username,
    password,
  });

//获取验证码

export const getCaptchaApi = () => axios.get("/users/getCaptcha");

//校验验证码

export const verifyCaptchaApi = (captcha) =>
  axios.get("/users/verifyCaptcha", {
    params: {
      captcha,
    },
  });
